package com.lean.android.projecttemplate.ui.main

import com.airbnb.mvrx.MavericksState
import com.airbnb.mvrx.MavericksViewModel


data class CountState(val count: Int = 0) : MavericksState

class CountViewModel(initialState: CountState) : MavericksViewModel<CountState>(initialState) {

    fun incrementCount() {
        setState {
            copy(count = count + 1)
        }
    }

}